﻿$(document).ready(function () {
    var playlist = $('#xiami_playlist_url').val();
    $.getJSON(
        "/home/playlist",
        {
            url: playlist
        },
        function (playlist) {
            var des = 'Xiami Music Html5 Player.';
            des += $('#xiami_playlist_des').val();
            $('body').ttwMusicPlayer(playlist, {
                autoplay: true,
                description: des,
                jPlayer: {
                    swfPath: '../js/jquery-jplayer'
                }
            });
        });
});